package com.shopping.huaju.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shopping.huaju.commodity.entity.vo.SearchResultVO;
import com.shopping.huaju.commodity.entity.vo.SkuItemVo;
import com.shopping.huaju.common.utils.PageUtils;
import com.shopping.huaju.commodity.entity.SkuInfoEntity;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku 信息
 *
 * @author tofu
 * @email tofu@qq.com
 * @date 2023-11-09 19:18:32
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //实现 批量添加 sku 基本信息
    void saveSkuBaseInfos(SkuInfoEntity skuInfoEntity);
    //实现带条件的分页查询
    PageUtils queryPageByConditions(Map<String, Object> params);

    //带条件的分页查询返回用户前台 商品sku 信息列表
    SearchResultVO searchSkuInfosInPage(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

